<?php 
	class Person{
		public $name;
		public $gender;
		public function say(){
			echo $this->name,'\tis',$this->gender,"\r\n";
		}
	}
	class Family{
		public $person;
		public $location;
		public function __construct($p,$l){
			$this->person=$p;
			$this->location=$l;
		}
	}
	$student=new Person();
	$student->name="Tome";
	$student->gender="male";
	$family=new Family($student,'paking');
	print_r($family);
	echo "\n\r";
	echo serialize($family);
	
